﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Model.CRM
{
    public partial class CustomerVisitInfo
    {
        private CustomerInfo _customer;
        public Func<int, CustomerInfo> GetCustomer;
        public CustomerInfo Customer
        {
            get
            {
                if (_customer == null)
                {
                    _customer = GetCustomer(this.CustomerID);
                }
                return _customer;
            }
            set
            {
                _customer = value;
            }
        }

        public string ContactMethodName
        {
            get;
            set;
        }
    }
}
